<div id="login-bar">
{% if not user_connected %}
<form method="POST" action="login.php" class="password-form">
	Email <input type="email" name="login[email]" class="middle email"/>
	Mot de passe <input type="password" name="login[password]" class="middle password"/>
	<input type="hidden" name="login[redirect_url]" value="{{ url_current }}"/>
	<input type="submit" value="Connexion" class="button small" name="login[button]"/>
	<a class="button small" href="inscription.php">S'inscrire</a>
</form>
{% else %}
	Bienvenue <span class="username">{{ user_connected.getUsername() }}</span>
	<a class="button small" href="user_myinfo.php">Paramètres de mon compte</a>
	<form method="POST" action="login.php" style="display: inline">
		<input type="submit" name="logout" value="Se déconnecter" class="button small" />
		<input type="hidden" name="login[redirect_url]" value="{{ url_current }}"/>
	</form>
{% endif %}
</div>
